/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import entity.Product;
import java.math.BigDecimal;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author SONY
 */
@Local
public interface ProductServiceLocal {
    
    List<Product> getAllProducts();
    
    Product getProductDetails_byPID(String pid);
    
    List<Product> getAllProducts_byCategoryID(String cid);
    
    List<Product> getAllProducts_LikePName_byPrice(String pname, double minprice, double maxprice);
    
    List<Product> getAllProducts_LikePName(String pname);
    
    List<Product> getAllProducts_LikePID(String pid);
    
    boolean checkQOH_byPID(String pid, int qty);
    
    boolean updateQOH_byPID(String pid, int qty_new);
    
    boolean updateProduct(String pid, String pname, int qoh, BigDecimal unitprice, String cid);
    
    boolean addProduct(String pid, String pname, int qoh, BigDecimal unitprice, String cid);
    
    boolean deleteProduct(String pid);
    
}
